{{include file = "layouts/operation/header.tpl"}}
    <link rel="stylesheet" type="text/css" href="{{$smarty.const.WEBSITE_URL}}public/style/emaillist.css" />
   
      <script>
        function changeimg()
        {
            document.getElementById("vfcode").src = '/cgi-bin/getverifyimage?aid=23000101&' + Math.random();document.getElementById('vc').focus();
        }
    </script>
     <div class="CustomMainPanel txt_left">
         <div class="content b_size" style="margin-top:35px;">
             <div class="Oheader">
                <div class="o_logo">
                    <h1>
                        <span class="default" href="">email subscribe center</span>
                    </h1>
                </div>
         </div>
        <div class="container">
            <div class="b_size" style="padding:25px 20px;">
            	{{if $success}}
                <div class="icon_finish_b" style="float:left;width:32px;height:32px;display:block;"></div>
                 {{else}}
                 <div class="icon_error_b" style="float:left;width:32px;height:32px;display:block;"></div>
                 {{/if}}
                <div style="margin-left:45px;line-height:22px;">
                    <h2 style="margin-top:0">{{$result}}</h2>
                    <div style="margin:15px 0 35px">{{$resultDetail}}{{$sql}}</div>
                    {{if !$success}}
                     <form action="{{$smarty.const.WEBSITE_URL}}emailsub" name="form" id="form" target="_self" method='get'
                      onsubmit="if(document.getElementById('emailAddress').value =='' || document.getElementById('emailAddress').value == 'Example：username@qq.com'){ alert('Please fill in the email address'); return false;}else{return true;}">
	                	<input id="emailOrigin" name="emailOrigin" type="hidden" value="{{$emailOrigin}}" /> 
	                     <p><input type="text" class="txt" value="{{$email}}" name="emailAddress" id="emailAddress" style="width:230px;" /></p>
                        	<div style="margin-top:10px;overflow:hidden;zoom:1;">
                            	<a onclick="javascript:document.form.submit();" style="margin-right: 5px;" class="btn_ex left">
                                	<span class="inner">OK</span>
                                </a>
<!--                                <a onclick="javascript:window.close();" class="btn_comm left">-->
<!--                                	<span class="inner">CLOSE</span>-->
<!--                               	</a>-->
                            </div>
                	</form>
                   
                    {{/if}}
                </div>
            </div>
        </div></div></div>
<div id="tipsMsg" class="tips b_size" style="display:none;">error tips</div>
<div id="tipsProcess" class="tips b_size" style="background-color:gray;display:none;">
</div>
<div id="tipsError" class="tips b_size" style="background-color:orange;display:none;">
</div>
<!---->
<!--<div class="footer">-->
<!--    <div class="graytext" style="font-size: 11px; margin: 5px 0pt;">&copy;  2014 babyspeedy.com. All Rights Reserved</div>-->
<!--</div>-->
<!--</body>-->
{{include file = "layouts/operation/footer.tpl"}}